Skip to content

Instantly share code, notes, and snippets.

@pismy
pismy / ThreadPoolTaskExecutorWithMdcPropagation.java
Created January 12, 2016 09:15
SLF4J Tool: ThreadPoolExecutor that propagates MDC from calling thread to executor thread
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Callable;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
@miliarch
miliarch / install-arch-in-virtual-machine.md
Last active May 9, 2024 02:59
Install Arch Linux in a Virtual Machine
@binary1230
binary1230 / .gitignore (wwise)
Created March 22, 2021 15:38
WWise + Unity .gitignore file example (older, but should still work)
# unofficial .gitignore for WWise + Unity projects
# dom at audiotankstudios dot com for questions
#
# this is based on a slightly older Unity and WWise version but, should be a decent starting point
#
# Instructions:
# 1) Place this in your root folder for your Unity project
# 2) Modify "WWiseProject/" below to be the path to your .wproj folder inside your Unity assets
# Unity portion based on https://github.com/github/gitignore/blob/master/Unity.gitignore

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 9, 2024 03:02
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@jbilinski
jbilinski / install-corp-ca-macos.sh
Last active May 9, 2024 02:56
MacOS shell script to install a new root CA and intermediate CAs
#!/bin/bash
((EUID != 0)) && exec sudo -- "$0" "$@"
cd /tmp/ &>/dev/null
clear
#
crturl="https://scriptops.corp/CertEnroll/"
rootfingerprint="1E:FD:F9:7F:92:A8:40:48:AD:AA:3F:A9:DB:0C:6E:86:6D:2C:B0:77:0D:13:EC:6D:9B:E7:77:44:B5:B8:31:D1"
rootcrtfile=Corporate\ Root\ CA.crt
declare -a crtfilelist
crtfilelist=(Corporate\ Intermediate\ CA\ 2.crt Corporate\ Intermediate\ CA\ 1.crt)

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@straker
straker / README.md
Last active May 9, 2024 02:49
Basic Tetris HTML and JavaScript Game

Basic Tetris HTML and JavaScript Game

This is a basic implementation of the game Tetris, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

@leober-ramos33
leober-ramos33 / youtube-block-ads.txt
Last active May 9, 2024 02:46
Block Ads in YouTube (uBlock Origin)
youtube.com##.ad-container
youtube.com###player-ads
youtube.com##.ytp-ad-overlay-container
youtube.com#@#.overlay-ads
youtube.com#@#.ddb
youtube.com###feed-pyv-container
youtube.com###feedmodule-PRO
youtube.com###homepage-chrome-side-promo
youtube.com###merch-shelf
youtube.com###pla-shelf
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 9, 2024 02:42
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android ๐Ÿ‹๐Ÿ“ฑ

Edit ๐ŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary